#include <stdio.h>                            
int isprime(int n)                                
{	 	   	     	   
    int i;                                        
    for (i = 2; i < n; i++)                       //1
        if (n % i == 0)                           //1
            return 0;                             //1
    return 1;                                     //1
}	 	   	     	   
int main()                                        
{	 	   	     	   
    int sum, i, a[10];                            
    printf("input 10 numbers:");                  
    for (i = 0; i < 10; i++)                      
        scanf("%d", &a[i]);                       //1
    for (i = 0, sum = 0; i < 10; i++)             //1
    {	 	   	     	   
        if (isprime(a[i]) == 1)                   //1
            sum = sum + a[i];
    }
    printf("sum=%d\n", sum);                      //1
    return 0;
}